package com.xc.hotelmgr.consumermq.service.mq.Impl;


import com.xc.hotelmgr.consumermq.mapper.OpHtlGroupMapper;
import com.xc.hotelmgr.consumermq.pojo.mq.HtlGroupDto;
import com.xc.hotelmgr.consumermq.pojo.mybatis.OpDtStoreGroup;
import com.xc.hotelmgr.consumermq.pojo.mybatis.OpHtlGroup;
import com.xc.hotelmgr.consumermq.service.mq.OpHtlGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OpHtlGroupServiceImpl implements OpHtlGroupService {

    @Autowired
    private OpHtlGroupMapper opHtlGroupMapper;

    @Override
    public List<OpHtlGroup> listAll() {
        return opHtlGroupMapper.listAll();
    }

    @Override
    public OpHtlGroup getById(Long id) {
        return opHtlGroupMapper.getById(id);
    }

    @Override
    public int insert(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.insert(opHtlGroup);
    }

    @Override
    public int insertIgnoreNull(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.insertIgnoreNull(opHtlGroup);
    }

    @Override
    public int update(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.update(opHtlGroup);
    }

    @Override
    public int updateIgnoreNull(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.updateIgnoreNull(opHtlGroup);
    }

    @Override
    public int delete(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.updateIgnoreNull(opHtlGroup);
    }

    @Override
    public List<OpHtlGroup> getOpHtlGroupHtLogicRoomByGIdAndSId(Integer groupId, Integer storeId) {
        return opHtlGroupMapper.getOpHtlGroupHtLogicRoomByGIdAndSId(groupId, storeId);
    }

    @Override
    public List<OpDtStoreGroup> getByGroup(HtlGroupDto htlGroupDto) {
        return opHtlGroupMapper.getByGroup(htlGroupDto);
    }
}
